﻿import com.bourre.log.*;
import com.bourre.structures.Range;
import com.bourre.utils.*;
import com.kairos.commands.*;
import com.kairos.engine.*;
import com.kairos.log.KairosDebug;
import com.kairos.motion.*;
import com.kairos.transitions.*;
import com.kairos.utils.*;

import flexunit.framework.TestSuite;

// TODO CommandRT implementation
// TODO CommandRT tests

private function onCreationComplete():void
{
	Logger.getInstance().setLevel( LogLevel.ALL );
	Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance(), PixlibDebug.CHANNEL );
	Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance(), KairosDebug.CHANNEL );
	
	testRunner.test = createSuite();
	testRunner.startTest();
}

private function createSuite() : TestSuite
{
	
	var ts:TestSuite = new TestSuite();
	
	// com.kairos.commands.*
	ts.addTestSuite( IntervalRTTest );
	ts.addTestSuite( FrameControllerRTTest );
	ts.addTestSuite( CommandRTTest );
	
	// com.kairos.engine.*
	ts.addTestSuite( RTBeaconTest );
	ts.addTestSuite( RTObjectTest );
	
	// com.kairos.motion.*
	ts.addTestSuite( MovieClipRTTest );
	ts.addTestSuite( AdvancedMovieClipRTTest );
	
	// com.kairos.motion.*
	ts.addTestSuite( TweenRTTest );
	ts.addTestSuite( MultiTweenRTTest );
	
	// com.kairos.utils.*
	ts.addTestSuite( ClockTest );
	
	return ts;
}
